package org.zero.controller;

import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.zero.service.UserService;

/**
 * 表现层的类创建bean并存入容器，使用同 Component 注解
 *
 * @author Zero
 */
@Controller
public class UserController {

    @Autowired
    private UserService userService;

    @Override
    public String toString() {
        return "UserController{" +
                "userService=" + userService +
                '}';
    }
}
